package com.ocom.netty.mj.service;

import com.sun.jna.Library;
import com.sun.jna.Native;

public interface JNASM2Dll extends Library {
    JNASM2Dll instanceDll  = (JNASM2Dll)Native.load("SM2_Crypt", JNASM2Dll.class);
    int add(int a,int b);
    //生成密钥串
    int  sm2_make_key(byte[] a, byte[] b, byte[] c);

    //32 32  64
    int  sm2_sign(byte[] a, byte[] b, byte[] c);

    int  sm2_verify(byte[] a, byte[] b, byte[] c,byte[] d);

}
